package com.xiliu.server.modules.wxmsg.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;
import com.xiliu.common.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 微信公众平台账号信息表对象 xl_wx_public_info
 * 
 * @author xiliu
 * @date 2023-01-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("xl_wx_public_info")
public class XlWxPublicInfo extends BaseEntity{

    private static final long serialVersionUID = 1L;

    /** 主键id */
    @ApiModelProperty("主键ID")
    @TableId(value = "info_id", type = IdType.AUTO)
    private Long infoId;

    /** 平台类型 wxapp:微信小程序, wxgzh:微信公众号 */
    private String platformType;

    /** 公众号开发者ID */
    private String appId;

    /** 公众号开发者密码 */
    private String appSecret;

    /** 公众号token */
    private String token;

    /** 消息加密密钥 */
    private String aesKey;

    /** 公众号名称 */
    private String appName;

    /** 消息格式，XML或者JSON */
    private String msgDataFormat;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "逻辑删除 1已删除 0未删除")
    private Boolean deleted;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private Long createdBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新人")
    private Long updatedBy;

    /** 数据版本 */
    private Long version;




}
